// 引入路由
import VueRouter from 'vue-router'
// 引入vue
import Vue from 'vue'
//注册
Vue.use(VueRouter)
//定义路由规则
const routes = [
    {
        path: '/',
        component: () => import('@/views/index')
    },
    {
        path: '/agent',
        component: () => import('@/views/agent')
    },
    {
        path: '/estate',
        component: () => import('@/views/estate'),
    },
    {
        path: '/estate/list',
        component: () => import('@/views/estate-list'),
    },
    {
        path: '/my',
        component: () => import('@/views/my')
    },
    {

        path:'/detail',
        component:()=>import('@/views/detail')
},
{
        path: '/estate/particulars',
        component: () => import('@/views/particulars')
    },
    {
        path: '/test',
        component: () => import('@/views/test')
    }
]
//生成路由对象
const router = new VueRouter({
    routes
})
//导出
export default router
